Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove check of class constraints for specialization #1287

Merged

Conversation

shirok
Copy link
Collaborator

@shirok shirok commented Oct 3, 2024

The original code rejects specializing a function/variable of type without class constraints. That restriction seems unecessary. I had talked with @stylewarning about removing this restriciton.

This is necessary to introduce specialization for LispArrays ( shirok@33ccdd9 ), which allows LispArray accessors/mutators to be inlined and omit runtime dispatch.

The original code rejects specializing a function/variable of type without
class constraints.  That restriction seems unecessary.
@stylewarning stylewarning force-pushed the remove-specialization-limitation branch from 83dccb7 to f4e8d25 Compare October 4, 2024 01:24
@stylewarning stylewarning enabled auto-merge (rebase) October 4, 2024 01:25
@stylewarning stylewarning merged commit ab5f6ab into coalton-lang:main Oct 4, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants